.class public Les/am;
.super Ljava/lang/Object;
.source "ESFileImage.java"

# interfaces
.implements Les/cm;


# instance fields
.field private final a:Landroid/net/Uri;

.field private b:Lcom/estrongs/fs/f;

.field private c:Lcom/estrongs/fs/e;

.field private d:Landroid/graphics/BitmapFactory$Options;

.field private e:I

.field private f:Lcom/estrongs/fs/g;

.field private g:Z

.field private h:Z


# direct methods
.method public constructor <init>(Les/dm;Lcom/estrongs/fs/f;Lcom/estrongs/fs/g;)V
    .locals 1

    .line 10
    invoke-interface {p3}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, p1, p2, v0}, Les/am;-><init>(Les/dm;Lcom/estrongs/fs/f;Ljava/lang/String;)V

    .line 11
    iput-object p3, p0, Les/am;->f:Lcom/estrongs/fs/g;

    return-void
.end method

.method public constructor <init>(Les/dm;Lcom/estrongs/fs/f;Ljava/lang/String;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 p1, 0x0

    .line 2
    iput p1, p0, Les/am;->e:I

    const/4 v0, 0x0

    .line 3
    iput-object v0, p0, Les/am;->f:Lcom/estrongs/fs/g;

    .line 4
    iput-object p2, p0, Les/am;->b:Lcom/estrongs/fs/f;

    .line 5
    invoke-static {p3}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_0

    const-string p2, "file://"

    invoke-virtual {p3, p2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p2

    if-nez p2, :cond_0

    .line 6
    new-instance p2, Ljava/io/File;

    invoke-direct {p2, p3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {p2}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object p2

    iput-object p2, p0, Les/am;->a:Landroid/net/Uri;

    goto :goto_0

    .line 7
    :cond_0
    invoke-static {p3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p2

    iput-object p2, p0, Les/am;->a:Landroid/net/Uri;

    .line 8
    :goto_0
    invoke-virtual {p0}, Les/am;->i()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/android/util/n0;->b(Ljava/lang/String;)I

    move-result p2

    const v0, 0x10013

    if-ne p2, v0, :cond_1

    const/4 p1, 0x1

    :cond_1
    iput-boolean p1, p0, Les/am;->g:Z

    .line 9
    invoke-static {p3}, Lcom/estrongs/android/util/h0;->U1(Ljava/lang/String;)Z

    move-result p1

    iput-boolean p1, p0, Les/am;->h:Z

    return-void
.end method

.method private static a(Landroid/graphics/BitmapFactory$Options;I)I
    .locals 3

    .line 31
    iget v0, p0, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    .line 32
    iget p0, p0, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    .line 33
    div-int v1, v0, p1

    .line 34
    div-int v2, p0, p1

    .line 35
    invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I

    move-result v1

    const/4 v2, 0x1

    if-gt v1, v2, :cond_0

    return v2

    :cond_0
    if-le v1, v2, :cond_1

    if-le v0, p1, :cond_1

    .line 36
    div-int/2addr v0, v1

    if-ge v0, p1, :cond_1

    add-int/lit8 v1, v1, -0x1

    :cond_1
    if-le v1, v2, :cond_2

    if-le p0, p1, :cond_2

    .line 37
    div-int/2addr p0, v1

    if-ge p0, p1, :cond_2

    add-int/lit8 v1, v1, -0x1

    :cond_2
    if-gt v1, v2, :cond_3

    return v2

    :cond_3
    return v1
.end method

.method private a(Ljava/io/InputStream;)Landroid/graphics/BitmapFactory$Options;
    .locals 2

    .line 38
    new-instance v0, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v0}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    const/4 v1, 0x1

    .line 39
    iput-boolean v1, v0, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    const/4 v1, 0x0

    .line 40
    invoke-static {p1, v1, v0}, Landroid/graphics/BitmapFactory;->decodeStream(Ljava/io/InputStream;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    return-object v0
.end method

.method private n()J
    .locals 4

    .line 1
    iget-object v0, p0, Les/am;->f:Lcom/estrongs/fs/g;

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Les/am;->b:Lcom/estrongs/fs/f;

    invoke-virtual {p0}, Les/am;->i()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    const/4 v3, 0x1

    invoke-virtual {v0, v1, v2, v3}, Lcom/estrongs/fs/f;->a(Ljava/lang/String;ZZ)Lcom/estrongs/fs/g;

    move-result-object v0

    iput-object v0, p0, Les/am;->f:Lcom/estrongs/fs/g;

    .line 3
    :cond_0
    iget-object v0, p0, Les/am;->f:Lcom/estrongs/fs/g;

    if-eqz v0, :cond_1

    .line 4
    invoke-interface {v0}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v0

    return-wide v0

    :cond_1
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method private o()Landroid/os/ParcelFileDescriptor;
    .locals 3

    .line 1
    :try_start_0
    iget-object v0, p0, Les/am;->a:Landroid/net/Uri;

    invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v0

    const/high16 v1, 0x10000000

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Les/am;->a:Landroid/net/Uri;

    invoke-virtual {v0}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object v0

    .line 3
    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-static {v2, v1}, Landroid/os/ParcelFileDescriptor;->open(Ljava/io/File;I)Landroid/os/ParcelFileDescriptor;

    move-result-object v0

    return-object v0

    .line 4
    :cond_0
    iget-object v0, p0, Les/am;->a:Landroid/net/Uri;

    invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->U1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 5
    invoke-virtual {p0}, Les/am;->h()Ljava/io/File;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 6
    invoke-static {v0, v1}, Landroid/os/ParcelFileDescriptor;->open(Ljava/io/File;I)Landroid/os/ParcelFileDescriptor;

    move-result-object v0
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    :catch_0
    :cond_1
    const/4 v0, 0x0

    return-object v0
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 1
    iget v0, p0, Les/am;->e:I

    return v0
.end method

.method public a(II)Landroid/graphics/Bitmap;
    .locals 2

    const/4 v0, 0x1

    const/4 v1, 0x0

    .line 3
    invoke-virtual {p0, p1, p2, v0, v1}, Les/am;->a(IIZZ)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1
.end method

.method public a(IIZ)Landroid/graphics/Bitmap;
    .locals 1

    const/4 v0, 0x0

    .line 4
    invoke-virtual {p0, p1, p2, p3, v0}, Les/am;->a(IIZZ)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1
.end method

.method public a(IIZZ)Landroid/graphics/Bitmap;
    .locals 3

    const-string p3, "got exception closing ParcelFileDescriptor "

    const-string v0, "ESFileImage"

    .line 5
    invoke-direct {p0}, Les/am;->o()Landroid/os/ParcelFileDescriptor;

    move-result-object v1

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    .line 6
    :try_start_0
    invoke-static {p1, p2, v1, p4}, Lcom/estrongs/android/pop/app/imageviewer/i;->a(IILandroid/os/ParcelFileDescriptor;Z)Landroid/graphics/Bitmap;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 7
    :try_start_1
    invoke-virtual {v1}, Landroid/os/ParcelFileDescriptor;->close()V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    move-exception p2

    .line 8
    invoke-static {v0, p3, p2}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_0
    return-object p1

    :catchall_0
    move-exception p1

    goto :goto_2

    :catch_1
    move-exception p1

    :try_start_2
    const-string p2, "got exception decoding bitmap "

    .line 9
    invoke-static {v0, p2, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 10
    :try_start_3
    invoke-virtual {v1}, Landroid/os/ParcelFileDescriptor;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2

    goto :goto_1

    :catch_2
    move-exception p1

    .line 11
    invoke-static {v0, p3, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    :goto_1
    return-object v2

    .line 12
    :goto_2
    :try_start_4
    invoke-virtual {v1}, Landroid/os/ParcelFileDescriptor;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_3

    goto :goto_3

    :catch_3
    move-exception p2

    .line 13
    invoke-static {v0, p3, p2}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 14
    :goto_3
    throw p1

    .line 15
    :cond_0
    :try_start_5
    iget-object p1, p0, Les/am;->b:Lcom/estrongs/fs/f;

    invoke-virtual {p0}, Les/am;->i()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcom/estrongs/fs/f;->e(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object p1
    :try_end_5
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_5 .. :try_end_5} :catch_4

    goto :goto_4

    :catch_4
    move-exception p1

    .line 16
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    move-object p1, v2

    :goto_4
    if-nez p1, :cond_1

    return-object v2

    .line 17
    :cond_1
    iget-object p2, p0, Les/am;->d:Landroid/graphics/BitmapFactory$Options;

    if-nez p2, :cond_2

    .line 18
    invoke-direct {p0, p1}, Les/am;->a(Ljava/io/InputStream;)Landroid/graphics/BitmapFactory$Options;

    move-result-object p2

    iput-object p2, p0, Les/am;->d:Landroid/graphics/BitmapFactory$Options;

    .line 19
    invoke-static {p1}, Lcom/estrongs/fs/util/f;->a(Ljava/io/Closeable;)V

    .line 20
    :try_start_6
    iget-object p2, p0, Les/am;->b:Lcom/estrongs/fs/f;

    invoke-virtual {p0}, Les/am;->i()Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p2, p3}, Lcom/estrongs/fs/f;->e(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object p1
    :try_end_6
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_6 .. :try_end_6} :catch_5

    goto :goto_5

    :catch_5
    move-exception p2

    .line 21
    invoke-virtual {p2}, Ljava/lang/Exception;->printStackTrace()V

    .line 22
    :cond_2
    :goto_5
    invoke-virtual {p0}, Les/am;->i()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/android/util/h0;->d1(Ljava/lang/String;)Z

    .line 23
    invoke-virtual {p0}, Les/am;->i()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Lcom/estrongs/android/util/h0;->N0(Ljava/lang/String;)Z

    .line 24
    iget-object p2, p0, Les/am;->d:Landroid/graphics/BitmapFactory$Options;

    const/16 p3, 0x320

    invoke-static {p2, p3}, Les/am;->a(Landroid/graphics/BitmapFactory$Options;I)I

    move-result p3

    iput p3, p2, Landroid/graphics/BitmapFactory$Options;->inSampleSize:I

    .line 25
    iget-object p2, p0, Les/am;->d:Landroid/graphics/BitmapFactory$Options;

    const/4 p3, 0x0

    iput-boolean p3, p2, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    .line 26
    sget-boolean p3, Lcom/estrongs/android/pop/j;->w:Z

    xor-int/lit8 p3, p3, 0x1

    iput-boolean p3, p2, Landroid/graphics/BitmapFactory$Options;->inPurgeable:Z

    .line 27
    :try_start_7
    invoke-static {p1, v2, p2}, Landroid/graphics/BitmapFactory;->decodeStream(Ljava/io/InputStream;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v2
    :try_end_7
    .catch Ljava/lang/OutOfMemoryError; {:try_start_7 .. :try_end_7} :catch_6
    .catchall {:try_start_7 .. :try_end_7} :catchall_1

    goto :goto_6

    :catchall_1
    move-exception p2

    .line 28
    invoke-static {p1}, Lcom/estrongs/fs/util/f;->a(Ljava/io/Closeable;)V

    .line 29
    throw p2

    .line 30
    :catch_6
    :goto_6
    invoke-static {p1}, Lcom/estrongs/fs/util/f;->a(Ljava/io/Closeable;)V

    return-object v2
.end method

.method public a(Z)Landroid/graphics/Bitmap;
    .locals 2

    const/16 v0, 0x140

    const v1, 0x17700

    .line 2
    invoke-virtual {p0, v0, v1, p1}, Les/am;->a(IIZ)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1
.end method

.method protected a(I)V
    .locals 1

    .line 41
    iget v0, p0, Les/am;->e:I

    if-ne v0, p1, :cond_0

    return-void

    .line 42
    :cond_0
    iput p1, p0, Les/am;->e:I

    return-void
.end method

.method public b()J
    .locals 2

    .line 1
    invoke-virtual {p0}, Les/am;->l()V

    .line 2
    iget-object v0, p0, Les/am;->c:Lcom/estrongs/fs/e;

    iget-wide v0, v0, Lcom/estrongs/fs/e;->i:J

    return-wide v0
.end method

.method public c()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/am;->h:Z

    return v0
.end method

.method public d()J
    .locals 2

    .line 1
    invoke-virtual {p0}, Les/am;->l()V

    .line 2
    iget-object v0, p0, Les/am;->c:Lcom/estrongs/fs/e;

    iget-wide v0, v0, Lcom/estrongs/fs/e;->d:J

    return-wide v0
.end method

.method public e()Landroid/graphics/Bitmap;
    .locals 1

    const/4 v0, 0x1

    .line 1
    invoke-virtual {p0, v0}, Les/am;->a(Z)Landroid/graphics/Bitmap;

    move-result-object v0

    return-object v0
.end method

.method public f()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Les/am;->g:Z

    return v0
.end method

.method public g()Landroid/net/Uri;
    .locals 1

    .line 1
    iget-object v0, p0, Les/am;->a:Landroid/net/Uri;

    return-object v0
.end method

.method public getHeight()I
    .locals 1

    .line 1
    invoke-virtual {p0}, Les/am;->m()Landroid/graphics/BitmapFactory$Options;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    iget v0, v0, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public getMimeType()Ljava/lang/String;
    .locals 1

    .line 1
    invoke-virtual {p0}, Les/am;->m()Landroid/graphics/BitmapFactory$Options;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, v0, Landroid/graphics/BitmapFactory$Options;->outMimeType:Ljava/lang/String;

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const-string v0, ""

    :goto_0
    return-object v0
.end method

.method public getTitle()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Les/am;->a:Landroid/net/Uri;

    invoke-virtual {v0}, Landroid/net/Uri;->getLastPathSegment()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/net/Uri;->decode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getWidth()I
    .locals 1

    .line 1
    invoke-virtual {p0}, Les/am;->m()Landroid/graphics/BitmapFactory$Options;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    iget v0, v0, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public h()Ljava/io/File;
    .locals 6

    .line 1
    new-instance v0, Ljava/io/File;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lcom/estrongs/android/pop/a;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "/remoteimg"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 2
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-nez v1, :cond_0

    .line 3
    invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z

    .line 4
    :cond_0
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Les/am;->i()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->hashCode()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, "-"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 5
    invoke-direct {p0}, Les/am;->n()J

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v2, "."

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 6
    invoke-virtual {p0}, Les/am;->i()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/fs/util/f;->i(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 7
    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v0, v1}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    .line 8
    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_1

    .line 9
    new-instance v0, Les/z60;

    iget-object v1, p0, Les/am;->b:Lcom/estrongs/fs/f;

    new-instance v3, Lcom/estrongs/fs/o;

    invoke-virtual {p0}, Les/am;->i()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Lcom/estrongs/fs/o;-><init>(Ljava/lang/String;)V

    new-instance v4, Lcom/estrongs/fs/o;

    invoke-virtual {v2}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v5

    invoke-virtual {v5}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Lcom/estrongs/fs/o;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v5

    invoke-direct {v0, v1, v3, v4, v5}, Les/z60;-><init>(Lcom/estrongs/fs/f;Lcom/estrongs/fs/g;Lcom/estrongs/fs/g;Ljava/lang/String;)V

    const/4 v1, 0x0

    .line 10
    invoke-virtual {v0, v1}, Les/s80;->b(Z)V

    .line 11
    invoke-virtual {v0}, Les/s80;->l()Les/u80;

    move-result-object v0

    iget v0, v0, Les/u80;->a:I

    if-eqz v0, :cond_1

    .line 12
    invoke-virtual {v2}, Ljava/io/File;->delete()Z

    :cond_1
    return-object v2
.end method

.method public i()Ljava/lang/String;
    .locals 2

    .line 1
    iget-object v0, p0, Les/am;->a:Landroid/net/Uri;

    invoke-virtual {v0}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v0

    const-string v1, "file"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Les/am;->a:Landroid/net/Uri;

    invoke-virtual {v0}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object v0

    return-object v0

    .line 3
    :cond_0
    iget-object v0, p0, Les/am;->a:Landroid/net/Uri;

    invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public j()Ljava/lang/String;
    .locals 1

    .line 1
    invoke-virtual {p0}, Les/am;->i()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->g(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public k()Lcom/estrongs/fs/g;
    .locals 1

    .line 1
    iget-object v0, p0, Les/am;->f:Lcom/estrongs/fs/g;

    return-object v0
.end method

.method public l()V
    .locals 5

    .line 1
    iget-object v0, p0, Les/am;->c:Lcom/estrongs/fs/e;

    if-eqz v0, :cond_0

    iget-wide v0, v0, Lcom/estrongs/fs/e;->i:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-nez v4, :cond_1

    .line 2
    :cond_0
    :try_start_0
    iget-object v0, p0, Les/am;->b:Lcom/estrongs/fs/f;

    invoke-virtual {p0}, Les/am;->i()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/fs/f;->d(Ljava/lang/String;)Lcom/estrongs/fs/e;

    move-result-object v0

    iput-object v0, p0, Les/am;->c:Lcom/estrongs/fs/e;
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 3
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 4
    :cond_1
    :goto_0
    iget-object v0, p0, Les/am;->c:Lcom/estrongs/fs/e;

    if-nez v0, :cond_2

    .line 5
    new-instance v0, Lcom/estrongs/fs/e;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/estrongs/fs/e;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Les/am;->c:Lcom/estrongs/fs/e;

    :cond_2
    return-void
.end method

.method public m()Landroid/graphics/BitmapFactory$Options;
    .locals 2

    .line 1
    iget-object v0, p0, Les/am;->d:Landroid/graphics/BitmapFactory$Options;

    if-nez v0, :cond_1

    .line 2
    :try_start_0
    iget-object v0, p0, Les/am;->b:Lcom/estrongs/fs/f;

    invoke-virtual {p0}, Les/am;->i()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/estrongs/fs/f;->e(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v0

    if-nez v0, :cond_0

    .line 3
    new-instance v0, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v0}, Landroid/graphics/BitmapFactory$Options;-><init>()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object v0

    .line 4
    :cond_0
    invoke-direct {p0, v0}, Les/am;->a(Ljava/io/InputStream;)Landroid/graphics/BitmapFactory$Options;

    move-result-object v1

    iput-object v1, p0, Les/am;->d:Landroid/graphics/BitmapFactory$Options;

    .line 5
    invoke-static {v0}, Lcom/estrongs/fs/util/f;->a(Ljava/io/Closeable;)V

    goto :goto_0

    .line 6
    :catch_0
    new-instance v0, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v0}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    return-object v0

    .line 7
    :cond_1
    :goto_0
    iget-object v0, p0, Les/am;->d:Landroid/graphics/BitmapFactory$Options;

    return-object v0
.end method
